from django import forms
from django.forms import ModelForm
from .models import AllinpayImagesList


class ProfileForm(ModelForm):
    class Meta:
        model = AllinpayImagesList
        fields = ["image"]


class AvatarUploadForm(forms.Form):
    auth = forms.IntegerField()
    code = forms.CharField(max_length=100)
    name = forms.ChoiceField(
        choices=(("face", "face"), ("phone", "phone"), ("temp", "temp"))
    )
    image = forms.ImageField()
